//
//  BeFreeCell.m
//  DaJiang
//
//  Created by sally on 16/10/6.
//  Copyright © 2016年 jiniu. All rights reserved.
//

#import "BeFreeCell.h"

@interface BeFreeCell ()

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressLabel;
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;

@end

@implementation BeFreeCell

- (void)awakeFromNib {
}

- (void)setCellData:(FreeModel *)cellData {
  self.timeLabel.text = [NSString stringWithFormat:@"时间：%@", cellData.data.time];
  self.addressLabel.text = [NSString stringWithFormat:@"地点：%@", cellData.data.location];
  self.statusLabel.text = cellData.data.state_desc;

  //不同状态，状态文本的颜色不一样
  if (cellData.data.state == 3) {
    self.statusLabel.textColor = GGrayWordColor1;
  } else {
    self.statusLabel.textColor = GOrangeColor;
  }
}

@end
